class AddCategorytCategoryTagIdToBlog < ActiveRecord::Migration
  def self.up
    add_column :posts,:category_id,:integer,:null => false, :default => 0
    add_column :posts,:categoryt_id,:integer,:null => false, :default => 0
  end

  def self.down
    remove_column :posts, :category_id
    remove_column :posts, :categoryt_id
  end
end
